package com.lagou.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "lagou-service-code", path = "/api/code")
//@RequestMapping("/resume")
public interface CodeServiceFeignClient {


  @PostMapping("/create/{email}")
  public boolean create(@PathVariable String email);

  @PostMapping("/validate/{email}/{code}")
  public boolean validate(@PathVariable("email") String email, @PathVariable("code") String code);


}
